﻿using CommunityToolkit.Mvvm.ComponentModel;
using HospitalSelfServiceMachine.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HospitalSelfServiceMachine.ViewModels
{
    public class RegisterViewModel : ObservableObject
    {
        public ObservableCollection<string> DateTimeCollection { get; } = new ObservableCollection<string>();

        public ObservableCollection<RegisterInfoItem> RegisterInfoItems { get; set; } = new ObservableCollection<RegisterInfoItem>();

        public RegisterViewModel()
        {
            DateTimeCollection.Add("今日");
            DateTimeCollection.Add(DateTime.Now.AddDays(1).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(2).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(3).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(4).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(5).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(6).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(7).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(8).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(9).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(10).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(11).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(12).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(13).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(14).ToString("yyyy-MM-dd"));
            DateTimeCollection.Add(DateTime.Now.AddDays(15).ToString("yyyy-MM-dd"));

            RegisterInfoItems.Add(new RegisterInfoItem() { Name = "华佗", ProfessionalTitle = "主任医师", Num = 22, Price = 99.9f });
            RegisterInfoItems.Add(new RegisterInfoItem() { Name = "张仲景", ProfessionalTitle = "副主任医师", Num = 0, Price = 99.9f });
            RegisterInfoItems.Add(new RegisterInfoItem() { Name = "扁鹊", ProfessionalTitle = "主任医师", Num = 22, Price = 99.9f });
            RegisterInfoItems.Add(new RegisterInfoItem() { Name = "孙思邈", ProfessionalTitle = "主任医师", Num = 22, Price = 99.9f });
            RegisterInfoItems.Add(new RegisterInfoItem() { Name = "神农", ProfessionalTitle = "主任医师", Num = 22, Price = 99.9f });
        }

        
    }
}
